﻿using SqlSugar;
using System;

namespace Model
{
    /// <summary>
    /// user_bind 表实体类
    /// </summary>
    [SugarTable("user_bind")]
    public class UserBind
    {
        /// <summary>
        /// 编号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public long Id { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        [SugarColumn(ColumnName = "user_id")]
        public long UserId { get; set; }

        /// <summary>
        /// 用户姓名
        /// </summary>
        [SugarColumn(ColumnName = "name")]
        public string Name { get; set; }

        /// <summary>
        /// 身份证号
        /// </summary>
        [SugarColumn(ColumnName = "id_card")]
        public string IdCard { get; set; }

        /// <summary>
        /// 银行卡号
        /// </summary>
        [SugarColumn(ColumnName = "bank_no")]
        public string BankNo { get; set; }

        /// <summary>
        /// 银行类型
        /// </summary>
        [SugarColumn(ColumnName = "bank_type")]
        public string BankType { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [SugarColumn(ColumnName = "mobile")]
        public string Mobile { get; set; }

        /// <summary>
        /// 绑定账户协议号
        /// </summary>
        [SugarColumn(ColumnName = "bind_code")]
        public string BindCode { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [SugarColumn(ColumnName = "status")]
        public byte? Status { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "create_time")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "update_time")]
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 逻辑删除(1:已删除，0:未删除)
        /// </summary>
        [SugarColumn(ColumnName = "is_deleted")]
        public byte IsDeleted { get; set; }

    }
}
